package com.test;

import java.util.Collection;
import java.util.Map;

public class CollectionTypeNode extends RuleNode {

	@Override
	public MatchResult howMatch(JsonKey key, Class type, Object value) {
		if(value instanceof Collection || value instanceof Map){
			return new MatchResult(this.nextRule,this.action);
		}else{
			return null;
		}
	}


}
